home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / maksiu / lists / amoslist-0996.lzh / AMOSLIST / 000045_amos-request@svcs1.digex.net_Tue Sep 24 08:06:46 1996.msg < prev    next >
Internet Message Format  |  1996-10-01  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.7.6/8.7.3) with ESMTP id IAA02013 for <mcox@access.digex.net>; Tue, 24 Sep 1996 08:06:44 -0400 (EDT)
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.7.5/8.7.3) id CAA15900 for amos-out; Thu, 19 Sep 1996 02:30:40 -0400 (EDT)
  3. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3]) by svcs1.digex.net (8.7.5/8.7.3) with ESMTP id CAA15897 for <amos-list@svcs1.digex.net>; Thu, 19 Sep 1996 02:30:39 -0400 (EDT)
  4. Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by mail2.access.digex.net (8.7.5/8.7.3) with SMTP id CAA00703 for <amos-list@access.digex.net>; Thu, 19 Sep 1996 02:30:37 -0400 (EDT)
  5. Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net  id aq02980;
  6.           18 Sep 96 14:27 BST
  7. Received: from mirex.demon.co.uk ([158.152.68.125]) by relay-3.mail.demon.net
  8.            id ae01796; 18 Sep 96 14:17 BST
  9. Received: by mirex.demon.co.uk (V1.16/Amiga)
  10.     id AA001fl; Tue, 17 Sep 96 18:34:19 GMT
  11. Date: Tue, 17 Sep 96 18:34:19 GMT
  12. Message-Id: <9609171834.AA001fg@mirex.demon.co.uk>
  13. Message-Id: <2332b020.u8t20e.77634-Braneloc@mirex.demon.co.uk>
  14. In-Reply-To: <9202260831.AA00995@paston.co.uk.uucp>
  15.          (from bwyatt@paston.co.uk (Ben Wyatt))
  16.          (at Wed, 26 Feb 92 08:31:37 GMT)
  17. Organization: Mirex Software
  18. Reply-To: Braneloc@mirex.demon.co.uk
  19. Website: http://www.netlink.co.uk/users/mirex
  20. From: Keith Hill <Braneloc@mirex.demon.co.uk>
  21. To: bwyatt@paston.co.uk
  22. Cc: amos-list@access.digex.net
  23. Subject: Re: Dividing hex numbers by 2
  24. Status: RO
  25. X-Status: 
  26.  
  27. -----BEGIN PGP SIGNED MESSAGE-----
  28.  
  29. To the one known as Ben,
  30.  
  31. > Hello all!
  32. > I'm trying to divide hex numbers by two. For example:
  33. > $ABC / 2 = $556.
  34.  
  35. you mean $55e...?
  36.  
  37. > But AMOS seems unable to do this. It can only divide even numbers correctly.
  38. > For example:
  39. > $62A / 2 = $315.
  40.  
  41. ..ok...
  42.  
  43. > But if the number was, for example, $7B3, it gives a silly answer.
  44.  
  45. $7b3    = 1971
  46. 1971/2    = 985.5  (985 as integer)
  47. 985    = $3D9
  48.  
  49. Amos says: $7b3 / 2 = $3d9
  50.  
  51. ...are you SURE about this ??
  52.  
  53. > Has anyone got a quick and easy solution to this, without having to read
  54. > each character and divide it manually?
  55.  
  56. Please give lots of examples where it goes wrong, and I'll try and help. 
  57. Either that, or your copy may need re-installing or something horrible like
  58. that. 
  59.  
  60. There is a limit on the amount of hex numbers amos can keep track of though,
  61. I think it blows up after a couple of million, errm, 2^20 or something like
  62. that.
  63.  
  64.  _   _   _        _     _   _     |  
  65. |_> |_| |_| |\ | |_ |  | | /   |  |  A man without religion is like a fish
  66. |_> | \ | | | \| |_ |_ |_| \_  .  |  without a bicycle.
  67.                                   |  
  68.                     --------------+---------------
  69.                  http://www.netlink.co.uk/users/mirex
  70.  
  71. -----BEGIN PGP SIGNATURE-----
  72. Version: 2.6ui (Amiga)
  73.  
  74. iQBFAgUBMj79NxhvTOOyI+ylAQEawgF+NN1mcjHsqGL7TmTFDVdY2f9ZX67m4xi5
  75. sJwX9Ii2EBQKZfRQyppcxmEI8HfgFPp4
  76. =mUPl
  77. -----END PGP SIGNATURE-----